﻿using Rsd.Dudu.ModelProvider;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rsd.Faith.Models
{
   
    /// <summary>
    /// 
    /// </summary>
    [Table("book_统筹账户", "book__tong_zhou_zhang_hu", "id")]
    [Serializable]
    public class BookTongChouZhangHuModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 账户编号
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("zhang_hu_bian_hao", "账户编号", 20, 50)]
        [DisplayName("账户编号")]
        public string ZhangHuBianHao { get; set; }

        /// <summary>
        /// 建账日期
        /// </summary>
        [DateTimeFormat("yyyy-MM-dd")]
        [DateTimeType("jian_zhang_ri_qi", "建账日期", 22, 3)]
        [DisplayName("建账日期")]
        public DateTime JianZhangRiQi { get; set; }
       
        /// <summary>
        /// 所属周期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 23, 20)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }

        /// <summary>
        /// 账户 所属 小区编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("xiao_qu_bian_hao", "小区编号", 24, 20)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }

        /// <summary>
        /// 账户类型:小区统筹账户 ,楼栋统筹账户,单元统筹账户
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("zhang_hu_lei_xing", "账户类型", 25, 50)]
        [DisplayName("账户类型")]
        public TongChouZhanhHuLeiXing ZhanhHuLeiXing { get; set; }

         
        /// <summary>
        /// 收入金额
        /// </summary>
        [NumericType("shou_ru_jin_e", "收入金额", 27, 20, 2)]
        [DisplayName("收入金额")]
        public decimal ShouYiJinE { get; set; }

        /// <summary>
        /// 使用金额
        /// </summary>
        [NumericType("zhi_chu_jin_e", "使用金额", 28, 20, 2)]
        [DisplayName("使用金额")]
        public decimal ShiYongJinE { get; set; }


        /// <summary>
        /// 当前最新余额=缴存金额+增值收益金额-已使用金额
        [NumericType("yu_e", "余额", 30, 20, 2)]
        [DisplayName("余额")]
        public decimal YuE { get; set; }

        /// <summary>
        /// 状态 
        /// </summary>
        [StringType("zhuang_tai", "状态", 32, 10, "DG")]
        [DisplayName("状态")]
        public string ZhuangTai { get; set; }

         
        /// <summary>
        /// 
        /// </summary>
        public BookTongChouZhangHuModel()
        { }

    }
}
